import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/door/device/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    },
    cryptoToken: false,
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/door/device/detail',
    method: 'get',
    params: {
      id
    },
    cryptoToken: false,
  })
}

export const sendDoorMsg = (row) => {
  return request({
    url: '/api/door/device/sendDoorMsg',
    method: 'post',
    data: row
  })
}
